﻿namespace YoUI.Core
{
    /// <summary>
    /// UI框架公用定义
    /// </summary>
    public class YoSysDefine
    {
        // UI框架入口所需的预制体
        public const string Yo_ROOT = "YoUI";

        // UI遮罩层
        public const string Yo_MaskPanel = "_PopUp/_UIMaskPanel";

        // UI配置路径
        public const string Yo_CFG_ROOT = "YoUI/CFG";

        public const string Yo_CFG = "Youi.cfg";

        public const string Yo_CFG_UI = "UI";
        public const string Yo_CFG_Audio = "Audio";

        /// <summary>
        /// 窗口类型
        /// </summary>
        public enum UIFormType
        {
            /// 默认窗口
            Normal,
            /// 固定窗口
            Fixed,
            /// 弹出窗口
            PopUp
        }

        /// <summary>
        /// 显示类型
        /// </summary>
        public enum UIFormShowMode
        {
            /// 默认显示方式
            Normal,
            /// 栈显示模式
            Reverse,
            /// 显示当前窗口时，隐藏其他窗口。
            HideOther,
            /// 单一最前窗口
            SingleTop
        }

        /// <summary>
        /// UI动画播放状态
        /// </summary>
        public enum AnimaPlayStatus
        {
            PlayeEnd,
            RePalyeEnd
        }
    }
}